package cn.liontalk.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description HelloService
 * @date 2018-12-02 13:25
 **/
@Service
public class HelloService {

    @Autowired
    private RestTemplate restTemplate;


    public String helloService(){
        return restTemplate.getForObject("http://eureka-client/hi",String.class);
    }

}
